package com.bytedance.speech.speechdemo.http

/***{
    "choices":[
    {
        "finish_reason":"stop",
        "index":0,
        "logprobs":null,
        "message":{
        "content":"Hello! How can I assist you today?",
        "role":"assistant"
    }
    }
    ],
    "created":1722396682,
    "id":"02172239668081740571e3ce5f26177b37c29bf9d076c3b801e66",
    "model":"doubao-lite-128k-240428",
    "object":"chat.completion",
    "usage":{
    "completion_tokens":9,
    "prompt_tokens":18,
    "total_tokens":27
   }
 }
*/

data class MessageResult(
    val choices: List<Choice>,
    val created: Int,
    val id: String,
    val model: String,
    val `object`: String,
    val usage: Usage
)

data class Choice(
    val finish_reason: String,
    val index: Int,
    val logprobs: Any,
    val message: Message
)

data class Usage(
    val completion_tokens: Int,
    val prompt_tokens: Int,
    val total_tokens: Int
)

data class Message(
    val content: String,
    val role: String
)